package com.ruoyi.erp.accounting.service.impl;

import com.ruoyi.erp.accounting.domain.Accounting;
import com.ruoyi.erp.accounting.mapper.AccountingMapper;
import com.ruoyi.erp.accounting.service.AccountingService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountingServiceImpl implements AccountingService {
@Autowired
  private AccountingMapper accountingMapper;

  @Override
  public List<Accounting> getList(Accounting accounting) {
    return accountingMapper.getList(accounting);
  }

  @Override
  public void addAccounting(Accounting accounting) {
    accountingMapper.addAccounting(accounting);
  }

  @Override
  public void updateAccounting(Accounting accounting) {
    accountingMapper.updateAccounting(accounting);
  }

  @Override
  public int deleteAccounting(String[] rowkey) {
    return accountingMapper.deleteAccounting(rowkey);
  }

  @Override
  public List<Accounting> findAccountingByRowkey(String rowkey) {
    return accountingMapper.findAccountingByRowkey(rowkey);
  }
}
